package com.ms.service.module.account.db;

import java.util.ArrayList;

import com.google.gson.Gson;
import com.xpec.c4.game.utility.GameUtility;

/**
 * 配合json解析TcpProxyServerGroupListModel.proxyList的Class
 * @author 16040
 *
 */
public class ProxyList {

	/**
	 * 正常的proxyList
	 */
	private ArrayList<String> ragularProxyList;
	
	/**
	 * 有問題的proxyList
	 */
	private ArrayList<String> problemProxyList;

	/**
	 * 正常的proxyList(h5)
	 */
	private ArrayList<String> ragularH5ProxyList;
	
	/**
	 * 有問題的proxyList(h5)
	 */
	private ArrayList<String> problemH5ProxyList;
	
	/**
	 * 從json字串轉成ProxyList
	 * @param jsonString
	 * @return
	 */
	public static ProxyList fromJsonStringToClass(String jsonString){
		if(!GameUtility.isHaveString(jsonString)){
			return null;
		}
		
		Gson gson = new Gson();
		ProxyList result = gson.fromJson(jsonString, ProxyList.class);
		return result;
	}
	
	public ArrayList<String> getRagularProxyList() {
		return ragularProxyList;
	}

	public void setRagularProxyList(ArrayList<String> ragularProxyList) {
		this.ragularProxyList = ragularProxyList;
	}

	public ArrayList<String> getProblemProxyList() {
		return problemProxyList;
	}

	public void setProblemProxyList(ArrayList<String> problemProxyList) {
		this.problemProxyList = problemProxyList;
	}

	public ArrayList<String> getRagularH5ProxyList() {
		return ragularH5ProxyList;
	}

	public void setRagularH5ProxyList(ArrayList<String> ragularH5ProxyList) {
		this.ragularH5ProxyList = ragularH5ProxyList;
	}

	public ArrayList<String> getProblemH5ProxyList() {
		return problemH5ProxyList;
	}

	public void setProblemH5ProxyList(ArrayList<String> problemH5ProxyList) {
		this.problemH5ProxyList = problemH5ProxyList;
	}
	
}
